<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
	<meta name="description" content="古今在线，铜鼓惊天">
	<link rel="stylesheet" href="../lib/weui.min.css">
	<link rel="stylesheet" href="../css/jquery-weui.css">
	<link rel="stylesheet" href="../img/global/iconfont.css">
	<% include ./template/commonJs.ejs %>
	<% include ./template/chatLister.ejs %>
</head>
<body ontouchstart>
		<% var topTitle = '添加收货地址';var topReturnType = '1' %> 
		<% include ./template/topReturn.ejs %>
	<div class="">
			<%
			var adrees = adreeDetail;
			var adree={};
			if(adrees && adrees.length>0){
				adree = JSON.parse(adrees) ;
			}
		   %>
		<input class="weui-input" value="<%-adree?adree.id:'' %>" id="adreeId" type="hidden" />
		<div class="weui-cell">
			<div class="weui-cell__hd"><label class="weui-label">姓名</label></div>
			<div class="weui-cell__bd">
				<input class="weui-input" type="text" value="<%-adree?adree.name:'' %>" id="name" placeholder="请输入姓名" />
			</div>
		</div>
		<div class="weui-cell weui-cell_select-after">
			<div class="weui-cell__hd"><label class="weui-label" onfocus="this.blur()">所属城市</label></div>
			<div class="weui-cell__bd weui-cell_select">
					<input class="weui-input"  id="area-choise" type="text" placeholder="请选择" value="<%-adree?adree.areaNames:'' %>" readonly="" />
					<input  id="area" type="hidden"  value="<%-adree?adree.areaNames :'' %>"/>
			</div>
		</div>
		<div class="weui-cell">
			<div class="weui-cell__hd"><label class="weui-label">地址</label></div>
			<div class="weui-cell__bd">
				<input class="weui-input" type="text" value="<%-adree?adree.address:'' %>" id="address" placeholder="请输入地址" />
			</div>
		</div>
		<div class="weui-cell">
			<div class="weui-cell__hd"><label class="weui-label">联系电话</label></div>
			<div class="weui-cell__bd">
				<input class="weui-input" oninput="value=value.replace(/[^\d]/g,'')" type="number" pattern="[0-9]*" value="<%-adree?adree.phone:'' %>" id="phone" placeholder="请输入联系电话" />
			</div>
		</div>
	</div>	  
		  
	<div class="weui-btn-area">
	<a class="weui-btn weui-btn_primary" href="javascript:" onclick="puilcPro();" id="showTooltips">确认添加</a>
	</div>		
	<script src="/lib/city-picker.js"></script>		
	
	
	<script type="text/javascript" src="<%=resUrl%>/js/add_address.js"></script>
</body>

</html>